package com.cssw.fyzb.core.dao.acct;


import com.cssw.fyzb.core.model.dodb.*;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author: yangyiqun
 * @Date: 2020/7/11 15:44
 */
public interface OutAcctDao {

    UserWechat getWechatById(Long userId);

    UserAli getAliById(Long userId);

    UserBank getBankByUserId(Long userId);

    UserBank getBankById(Long bankId);

    UserBank getBankByIdAndCardNo(Long userId, String cardNo);

    List<BankCode> listBankCode();

    List<BankCodeCh> listBankCodeCh();

    List<UserBank> listBankById(Long userId);

    void deleteWechat(Long userId);

    void deleteAli(Long userId);

    void deleteBank(Long bankId);

    void saveAli(Long userId, String name, String aliNo, String receQrCode);

    void saveWechat(Long userId, String name, String wechatNo, String receQrCode);

    void saveBank(Long userId, String bankName, String cardNo, String openBank, String name, int defaultFlag,String province,String city,String bankCode);

    void updateAli(Long userId, String name, String aliNo, String receQrCode);

    void updateWechat(Long userId, String name, String wechatNo, String receQrCode);

    void updateBank(Long bankId, Long userId, String bankName, String cardNo, String openBank, String name, int defaultFlag,String province,String city,String bankCode);

    void updateBank(UserBank userBank);

    //设为默认
    void defaultFlg(Long bankId);

    //其余的不默认
    void noDefaultFlg(Long bankId);

    List<BankDistrict> listBankDistrict();

    void updateNoDefaultFlgByUserId(Long userId);
}
